package com.itheima.stock.api                                                                                                                     ;

import com.itheima.stock.dto.LoginDTO;
import com.itheima.stock.response.ResponseResult;
import com.itheima.stock.vo.CaptchaVo;
import com.itheima.stock.vo.LoginVO;
import com.itheima.stock.vo.MarketIndexVO;
import org.springframework.web.bind.annotation.*;

/**
 * @author zby
 * @created 2024-06-22 22:44
 * @description 对外暴露用户接口
 */
@RequestMapping(path = "/api")
public interface UserControllerAPI {

    @PostMapping(path = "/login")
    ResponseResult<LoginVO> login(@RequestBody LoginDTO dto);

    @GetMapping("/captcha")
    ResponseResult<CaptchaVo> captcha();

    /**
     * 环境测试接口
     *
     * @return String
     */
    @GetMapping(path = "/user/test")
    String sayHello(@RequestParam("name") String name);


}
